{extend name="common/base"}

{block name="title"}Mine Page{/block}

{block name="body"}
{include file="common/navbar"}
<div class="row">
    {include file="common/leftbar"}
    <div class="col-md-10">
        <ol class="breadcrumb">
            <li>我的图库</li>
            <li>{$gallery.name}</li>
        </ol>
        <div class="col-md-8 col-md-offset-2">
            <form class="form-horizontal" action="{:url('update', ['id' => $image.id])}" method="post">
                <img class="img-rounded" src="__ROOT__/uploads/{$image.path}" alt="image" style="width: 520px">
                <div class="form-group">
                    <label for="name" class="control-label">图片名称</label>
                    <input type="text" class="form-control" id="name" name="name" placeholder="图片名称" value="{$image.name}">
                </div>
                <input type="submit" class="btn btn-primary" value="确认修改">
            </form>
        </div>
    </div>
</div>
{/block}

{block name="script"}
<script>
    $('#mine').addClass('active')
</script>
{/block}
